﻿Public Class frmTimKiemKhachHang

    Private Sub radDiaChi_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radDiaChi.CheckedChanged
        If (radDiaChi.Checked = True) Then
            txtDiaChi.Enabled = True
            txtMaKH.Enabled = False
            txtDienThoai.Enabled = False
            txtEmail.Enabled = False
        End If
    End Sub

    Private Sub radMaKH_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radMaKH.CheckedChanged
        If (radMaKH.Checked = True) Then
            txtMaKH.Enabled = True
            txtDiaChi.Enabled = False
            txtDienThoai.Enabled = False
            txtEmail.Enabled = False
        End If
    End Sub

    Private Sub radDienThoai_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radDienThoai.CheckedChanged
        If (radDienThoai.Checked = True) Then
            txtDienThoai.Enabled = True
            txtMaKH.Enabled = False
            txtDiaChi.Enabled = False
            txtEmail.Enabled = False
        End If
    End Sub

    Private Sub radEmail_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radEmail.CheckedChanged
        If (radEmail.Checked = True) Then
            txtEmail.Enabled = True
            txtMaKH.Enabled = False
            txtDiaChi.Enabled = False
            txtDienThoai.Enabled = False
        End If
    End Sub
End Class